package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.StudyCategoryDao;
import com.platform.entity.StudyCategoryEntity;
import com.platform.service.StudyCategoryService;

/**
 * Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2018-08-21 17:19:56
 */
@Service("studyCategoryService")
public class StudyCategoryServiceImpl implements StudyCategoryService {
    @Autowired
    private StudyCategoryDao studyCategoryDao;

    @Override
    public StudyCategoryEntity queryObject(Integer id) {
        return studyCategoryDao.queryObject(id);
    }

    @Override
    public List<StudyCategoryEntity> queryList(Map<String, Object> map) {
        return studyCategoryDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return studyCategoryDao.queryTotal(map);
    }

    @Override
    public int save(StudyCategoryEntity cmsCategory) {
        return studyCategoryDao.save(cmsCategory);
    }

    @Override
    public int update(StudyCategoryEntity cmsCategory) {
        return studyCategoryDao.update(cmsCategory);
    }

    @Override
    public int delete(Integer id) {
        return studyCategoryDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return studyCategoryDao.deleteBatch(ids);
    }
}
